package com.yjd.comm.user.model;

import com.yjd.comm.base.model.Model;
import com.yjd.comm.baseInfo.util.CityUtil;
import com.yjd.comm.system.enums.DictTypeEnum;
import com.yjd.comm.system.util.DictUtil;

/**
 * <b>description</b>：用户详细信息模型<br>
 * <b>time</b>：2014-11-12 13:41:47 <br>
 * <b>author</b>： percy percy-chen@hotmail.com
 */
public class UserDataModel extends Model {

	/**
	 * @Fields serialVersionUID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 会员id
	 */
	private Long user_id;
	/**
	 * 学历
	 */
	private Integer xueli;
	/**
	 * 户口
	 */
	private Integer hukou;
	/**
	 * 居住城市
	 */
	private Integer city;
	/**
	 * 居住地址
	 */
	private String address;
	/**
	 * 居住地电话
	 */
	private String tel;
	/**
	 * 居住地邮编
	 */
	private Integer zip;
	/**
	 * 婚姻状况
	 */
	private Integer hunyin;
	/**
	 * 是否有子女
	 */
	private Integer iszinv;
	/**
	 * 直系亲属姓名
	 */
	private String z_name;
	/**
	 * 直系亲属关系
	 */
	private Integer z_type;
	/**
	 * 直系亲属手机
	 */
	private Long z_mobile;
	/**
	 * 其他联系人姓名
	 */
	private String o_name;
	/**
	 * 其他联系人关系
	 */
	private Integer o_type;
	/**
	 * 其他联系人手机
	 */
	private Long o_mobile;
	/**
	 * 单位类别
	 */
	private Integer work_class;
	/**
	 * 工作城市
	 */
	private Integer work_city;
	/**
	 * 年收入
	 */
	private Integer work_shouru;
	/**
	 * 规模
	 */
	private Integer work_guimo;
	/**
	 * 工作年限
	 */
	private Integer work_nianxian;
	/**
	 * 工作电话
	 */
	private String work_tel;
	/**
	 * 工作地址
	 */
	private String work_address;
	/**
	 * 所处职位
	 */
	private String work_zhiwei;
	/**
	 * 医院名称
	 */
	private String h_name;
	/**
	 * 医院性质
	 */
	private Integer h_xingzhi;
	/**
	 * 医院类别
	 */
	private Integer h_leibie;
	/**
	 * 医院等级
	 */
	private Integer h_dengji;
	/**
	 * 集团名称
	 */
	private String c_name;
	/**
	 * 集团性质
	 */
	private Integer c_xingzhi;
	/**
	 * 集团所属行业
	 */
	private Integer c_hangye;
	/**
	 * 是否有房
	 */
	private Integer isfang;
	/**
	 * 是否有房贷
	 */
	private Integer isfangdai;
	/**
	 * 是否有车
	 */
	private Integer ische;
	/**
	 * 是否有车贷
	 */
	private Integer ischedai;

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}

	public Integer getXueli() {
		return xueli;
	}

	public void setXueli(Integer xueli) {
		this.xueli = xueli;
	}

	public Integer getHukou() {
		return hukou;
	}

	public void setHukou(Integer hukou) {
		this.hukou = hukou;
	}

	public Integer getCity() {
		return city;
	}

	public void setCity(Integer city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Integer getZip() {
		return zip;
	}

	public void setZip(Integer zip) {
		this.zip = zip;
	}

	public Integer getHunyin() {
		return hunyin;
	}

	public void setHunyin(Integer hunyin) {
		this.hunyin = hunyin;
	}

	public Integer getIszinv() {
		return iszinv;
	}

	public void setIszinv(Integer iszinv) {
		this.iszinv = iszinv;
	}

	public String getZ_name() {
		return z_name;
	}

	public void setZ_name(String z_name) {
		this.z_name = z_name;
	}

	public Integer getZ_type() {
		return z_type;
	}

	public void setZ_type(Integer z_type) {
		this.z_type = z_type;
	}

	public String getO_name() {
		return o_name;
	}

	public void setO_name(String o_name) {
		this.o_name = o_name;
	}

	public Integer getO_type() {
		return o_type;
	}

	public void setO_type(Integer o_type) {
		this.o_type = o_type;
	}

	public Long getZ_mobile() {
		return z_mobile;
	}

	public void setZ_mobile(Long z_mobile) {
		this.z_mobile = z_mobile;
	}

	public Long getO_mobile() {
		return o_mobile;
	}

	public void setO_mobile(Long o_mobile) {
		this.o_mobile = o_mobile;
	}

	public Integer getWork_class() {
		return work_class;
	}

	public void setWork_class(Integer work_class) {
		this.work_class = work_class;
	}

	public Integer getWork_city() {
		return work_city;
	}

	public void setWork_city(Integer work_city) {
		this.work_city = work_city;
	}

	public Integer getWork_shouru() {
		return work_shouru;
	}

	public void setWork_shouru(Integer work_shouru) {
		this.work_shouru = work_shouru;
	}

	public Integer getWork_guimo() {
		return work_guimo;
	}

	public void setWork_guimo(Integer work_guimo) {
		this.work_guimo = work_guimo;
	}

	public Integer getWork_nianxian() {
		return work_nianxian;
	}

	public void setWork_nianxian(Integer work_nianxian) {
		this.work_nianxian = work_nianxian;
	}

	public String getWork_tel() {
		return work_tel;
	}

	public void setWork_tel(String work_tel) {
		this.work_tel = work_tel;
	}

	public String getWork_address() {
		return work_address;
	}

	public void setWork_address(String work_address) {
		this.work_address = work_address;
	}

	public String getWork_zhiwei() {
		return work_zhiwei;
	}

	public void setWork_zhiwei(String work_zhiwei) {
		this.work_zhiwei = work_zhiwei;
	}

	public String getH_name() {
		return h_name;
	}

	public void setH_name(String h_name) {
		this.h_name = h_name;
	}

	public Integer getH_xingzhi() {
		return h_xingzhi;
	}

	public void setH_xingzhi(Integer h_xingzhi) {
		this.h_xingzhi = h_xingzhi;
	}

	public Integer getH_leibie() {
		return h_leibie;
	}

	public void setH_leibie(Integer h_leibie) {
		this.h_leibie = h_leibie;
	}

	public Integer getH_dengji() {
		return h_dengji;
	}

	public void setH_dengji(Integer h_dengji) {
		this.h_dengji = h_dengji;
	}

	public String getC_name() {
		return c_name;
	}

	public void setC_name(String c_name) {
		this.c_name = c_name;
	}

	public Integer getC_xingzhi() {
		return c_xingzhi;
	}

	public void setC_xingzhi(Integer c_xingzhi) {
		this.c_xingzhi = c_xingzhi;
	}

	public Integer getC_hangye() {
		return c_hangye;
	}

	public void setC_hangye(Integer c_hangye) {
		this.c_hangye = c_hangye;
	}

	public Integer getIsfang() {
		return isfang;
	}

	public void setIsfang(Integer isfang) {
		this.isfang = isfang;
	}

	public Integer getIsfangdai() {
		return isfangdai;
	}

	public void setIsfangdai(Integer isfangdai) {
		this.isfangdai = isfangdai;
	}

	public Integer getIsche() {
		return ische;
	}

	public void setIsche(Integer ische) {
		this.ische = ische;
	}

	public Integer getIschedai() {
		return ischedai;
	}

	public void setIschedai(Integer ischedai) {
		this.ischedai = ischedai;
	}

	public void setStrMap() throws Exception {
		this.getStrMap().put("ische",
				DictUtil.getDictByCode(DictTypeEnum.yesorno, this.ische));
		this.getStrMap().put("ischedai",
				DictUtil.getDictByCode(DictTypeEnum.yesorno, this.ischedai));
		this.getStrMap().put("isfangdai",
				DictUtil.getDictByCode(DictTypeEnum.yesorno, this.isfangdai));
		this.getStrMap().put("isfang",
				DictUtil.getDictByCode(DictTypeEnum.yesorno, this.isfang));
		this.getStrMap().put("c_hangye",
				DictUtil.getDictByCode(DictTypeEnum.comp_busy, this.c_hangye));
		this.getStrMap().put(
				"c_xingzhi",
				DictUtil.getDictByCode(DictTypeEnum.comp_quality,
						this.c_xingzhi));
		this.getStrMap().put("h_dengji",
				DictUtil.getDictByCode(DictTypeEnum.hp_level, this.h_dengji));
		this.getStrMap().put("h_leibie",
				DictUtil.getDictByCode(DictTypeEnum.hp_type, this.h_leibie));
		this.getStrMap()
				.put("h_xingzhi",
						DictUtil.getDictByCode(DictTypeEnum.hp_quality,
								this.h_xingzhi));
		this.getStrMap().put(
				"work_nianxian",
				DictUtil.getDictByCode(DictTypeEnum.work_year,
						this.work_nianxian));
		this.getStrMap()
				.put("work_guimo",
						DictUtil.getDictByCode(DictTypeEnum.comp_scale,
								this.work_guimo));
		this.getStrMap().put(
				"work_shouru",
				DictUtil.getDictByCode(DictTypeEnum.work_income,
						this.work_shouru));
		this.getStrMap()
				.put("work_class",
						DictUtil.getDictByCode(DictTypeEnum.work_class,
								this.work_class));
		this.getStrMap()
				.put("o_type",
						DictUtil.getDictByCode(DictTypeEnum.contact_type_2,
								this.o_type));
		this.getStrMap()
				.put("z_type",
						DictUtil.getDictByCode(DictTypeEnum.contact_type_1,
								this.z_type));
		this.getStrMap().put("iszinv",
				DictUtil.getDictByCode(DictTypeEnum.yesorno, this.iszinv));
		this.getStrMap().put("hunyin",
				DictUtil.getDictByCode(DictTypeEnum.marry_status, this.hunyin));
		this.getStrMap().put("xueli",
				DictUtil.getDictByCode(DictTypeEnum.education, this.xueli));
		this.getStrMap().put("hukou",
				CityUtil.getFullCityNames(this.hukou, "->"));
		this.getStrMap().put("work_city",
				CityUtil.getFullCityNames(this.work_city, "->"));
		this.getStrMap()
				.put("city", CityUtil.getFullCityNames(this.city, "->"));
		this.getStrMap().put("hukouid",
				CityUtil.getFullCityIds(this.hukou, ","));
		this.getStrMap().put("cityid", CityUtil.getFullCityIds(this.city, ","));
		this.getStrMap().put("work_cityid",
				CityUtil.getFullCityIds(this.work_city, ","));

	}

}
